<?php if (count($model) > 0) { ?>
    <div class="vj_top_raovat03">
        <div class="vj_title_rv">
            <b>Hàng Mới Cập Nhật</b>

            <div>
                <label class="bt_rv_right" id="next_list03" onclick="return false;"></label>
                <label class="bt_rv_left" id="prev_list03" onclick="return false;"></label>

                <p><a href="<?php echo TreTodayUrl::getAppUrl('shopping') ?>">Shopping</a><span>|</span><a
                        href="<?php echo TreTodayUrl::getAppUrl('computer') ?>">Computer</a><span>|</span><a
                        href="<?php echo TreTodayUrl::getAppUrl('dientu') ?>">Điện tử</a></p>
            </div>
        </div>
        <div class="vj_content_rv03" id="rv_list_03">
            <?php foreach ($model as $key => $item) { ?>
                <div>
                    <ul>
                        <?php foreach ($item as $i) { ?>
                            <li>
                                <a href="<?php echo TreTodayUrl::getProductUrl($i['id'], $i['name']) ?>">

                                    <img width="181" height="121"
                                         style="background:url('<?php echo TreTodayUrl::home() . '/' . $i['picture'] ?>') no-repeat center center"
                                         alt="" src="<?php echo TreTodayUrl::home() . '/' . $i['picture'] ?>"/>
                                </a>
                                <label><a
                                        href="<?php echo TreTodayUrl::getProductUrl($i['id'], $i['name']) ?>"><?php echo TreTodayCommon::formatPrice($i['price'], $i['currency']) ?></a>
                                </label>
                            </li>
                        <?php } ?>
                    </ul>
                </div>
            <?php } ?>
        </div>
    </div>
<?php } ?>

<script type="text/javascript">
    $(document).ready(function () {
        $('#rv_list_03').cycle({
            fx: 'fade',
            speed: '50',
            timeout: 0,
            next: '#next_list03',
            prev: '#prev_list03'
        });
    });
</script>